var app = getApp()
Page({
  data: {
    userInfo: {},
    systemInfo:{},
    totalSkills:'10',
    finishedSkills:'10',
    unfinishSkills:'10',
    hasUsed:'10',
    lists:[
      {
        name:'2017年锻炼身体计划',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'诶呀呀我的歌娘',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'没事干测试一下玩儿玩儿',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'我能想到最浪漫的事',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'就是和你一起慢慢闻臭榴莲',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'这榴莲的味儿，熏得头疼',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'已经表现出轻微的榴莲中毒迹象了',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      },
      {
        name:'感觉身在屎堆中，胸闷气短',
        endDate:'2017-01-02',
        startDate:'2017-11-02',
        continued:50,
        type:1
      }
    ]
  },
  //事件处理函数
  bindTouchNew: function() {
    wx.navigateTo({
      url: '../skill/create'
    })
  },
  //事件处理函数
  bindtap: function(event,e) {
    wx.navigateTo({
      url: '../skill/view'
    })
  },
  onLoad: function () {
    console.log('home onLoad')
    var that = this
    //调用应用实例的方法获取全局数据
    app.reloadInfos(that);
  }
})